package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-17
 * Time: 18:42
 */

class Teacher {
    private String name;
    private int age;

    public Teacher(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
public class exercise1 {
    public static void main(String[] args) {
        Teacher teacher = new Teacher("汪洋",30);

//        System.out.println(teacher.name);
//        System.out.println(teacher.age);
    }
}
